<?php

function paging_admin($urlPage, $total, $numshow = 25, $uri_segment = 4)
{
    $pagination = new MY_Pagination();
    $pagination->base_url = base_url() . $urlPage;
    $pagination->total_rows = $total;
    $pagination->per_page = $numshow;
    $pagination->num_links = 4;
    $pagination->uri_segment = $uri_segment;
    return $pagination->AdminPaging();
}

function paging_fo($urlPage, $total, $numshow = 25, $uri_segment = 4)
{
    $pagination = new MY_Pagination();
    $pagination->base_url = base_url() . $urlPage;
    $pagination->total_rows = $total;
    $pagination->per_page = $numshow;
    $pagination->num_links = 4;
    $pagination->uri_segment = $uri_segment;
    return $pagination->AdminPaging();
}
